#1.5
for x in range(1,21):
    for y in range(1,33):
        for z in range(3,99,3):
            if(x+y+z == 100 and 5*x+3*y+z/3 == 100):
                print("公鸡：{}，母鸡：{}，小鸡：{}".format(x,y,z))

for x in range(1,21):
    for y in range(1,33):
        if(5*x+3*y+(100-x-y)/3 == 100):
            print("公鸡：{}，母鸡：{}，小鸡：{}".format(x,y,100-x-y))